<?php /* Smarty version Smarty-3.1.13, created on 2013-06-09 09:33:21
         compiled from ".\templates\currentTables1.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2338151825607de4c40-60304242%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'cd0ac6b4c0257de3771a06a9cc2965338a461e15' => 
    array (
      0 => '.\\templates\\currentTables1.tpl',
      1 => 1370750600,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2338151825607de4c40-60304242',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51825607e717b0_91811960',
  'variables' => 
  array (
    'joinResult' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51825607e717b0_91811960')) {function content_51825607e717b0_91811960($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\shiv\\include\\smarty\\libs\\plugins\\modifier.date_format.php';
?>
<table align="left"  border="1" cellpadding="2" cellspacing="2" id="tableNo" clsss="waiterdiv" >
  <tr>
    <td align="center" class="table1" colspan="9" valign="top"><b>Order Master</b></td>
  <tr>
    <td class="table1"><b>Add</b></td>
    <td class="table1" ><b>Print Bill</b></td>
    <td class="table1"><b>Table</b></td>
    <td class="table1"><b>Waiter</b></td>
    <td class="table1" align="right"><b>Items</b></td>
    <td class="table1" align="right"><b>Amount</b></td>
    <td class="table1"><b>Start</b></td>
    <td class="table1"><b>Last Order</b></td>
			
		</tr>
		<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['joinResult']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
		<tr>
		  <td class="table2" align="center"><a href="window8.php?waiter=<?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['waiterId'];?>
&table=<?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['tableId'];?>
&tablePart=<?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['tablePart'];?>
" target="_top">Add</td>
		  <td class="table2" align="center"><a href="amountListPdf1.php?waiterId=<?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['waiterId'];?>
&tableId=<?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['tableId'];?>
&tablePart=<?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['tablePart'];?>
&orderId=<?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['orderId'];?>
" target="_blank">Print</td>
		  <td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['tableId'];?>
<?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['tablePart'];?>
</td>
		  <td class="table2" align="center"><?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['waiterName'];?>
</td>
                  <td class="table2" align="right"><?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['totalItem'];?>
</td>
		  <td class="table2" align="right"><?php echo $_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['totalamount'];?>
</td>
		  <td class="table2" align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['startTime'],"%H:%M");?>
</td>
		  <td class="table2" align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['joinResult']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['lastordertime'],"%H:%M");?>
</td>
		  </tr>
		<?php endfor; endif; ?>
</table>
<?php }} ?>